home *** CD-ROM | disk | FTP | other *** search
- Path: news-relay.eworld.com!zdc!szdc!news
- From: cmahoney@super.zippo.com (Colin Mahoney)
- Newsgroups: comp.lang.c++
- Subject: Re: HELP NEEDED ON C++ TVISION
- Date: Wed, 13 Mar 1996 12:08:08 GMT
- Organization: Zippo
- Message-ID: <3146a277.2415506@snews.zippo.com>
- References: <891248863wnr@novagrp.demon.co.uk> <4hslj3$rsm@sam.inforamp.net>
- NNTP-Posting-Host: readysoft_242.readysoft.es
- X-Newsreader: Forte Agent .99d/32.182
-
- On Sat, 09 Mar 96 19:18:46 GMT, rmorin@inforamp.net (Randy Charles
- Morin) wrote:
-
- >In article <891248863wnr@novagrp.demon.co.uk>,
- > Faisal Sheikh <faisal@novagrp.demon.co.uk> wrote:
- >>
- >>Faisal Sheikh EMail faisal@novagrp.demon.co.uk
- >>
- >>I have written a program for a simple editor using TVision. I can write
- >>on active window using keyboard, but I don't know how to display a
- >>string or a character on active window. I have drived the main window
- >>from class TAplication and child window from TEditWindow. Can anybody
- >>tell me what functions to use. I will be greatful if you can email me.
- >
- >I'm assuming by active window, you mean the TEditWindow.
- >
- >char buffer[]="Hello";
- >TEditWindow p(...);
- >..
- >p.SetText(buffer);
- >
- >But, I haven't used TVision in almost two years and I might be confusing the
- >TEditWindow with the one in OWL.
- >
-
- "windows" are different things in turbovision and MS Windows..
-
- A TV window corresponds roughly to a MSWindows frame; TV has a "TView"
- class which corresponds to a bog-standard window. You need to insert
- the text into the TEditor object, derived from TView, a pointer to
- which is held in the TEditWindow object. Something like:
-
- p.editor->insertText( buffer, length, bSelectText );
-
- TV include a complete example of using the editors; check out
- TVEdit.ide or TVEdit.prj, depending on the version you have.
-
- The best place to fine help on TV is in the newsgroup
- comp.os.msdos.programmer.turbovision. When posting, specify if you are
- asking about the C++ or Turbo Pascal versions.
-
- >Agrivar
-
- ---------------------------------------
- Colin Mahoney ( cmahoney@readysoft.es )
- Sabadell, Spain
- ---------------------------------------
-